package xyz.zdsoft.homework_manage_module.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import xyz.zdsoft.homework_manage_module.bo.StudentJob;
import xyz.zdsoft.homework_manage_module.vo.RestPerTask;
import xyz.zdsoft.homework_manage_module.vo.RestStudentJob;

import java.util.List;

public interface StudentTaskMapper {
   List<RestStudentJob> jobManagement(StudentJob studentJob,String studentName,String workStatus,String typess,String types);
   @Select("SELECT create_time,title,complete_date,appends_link,teacher_name FROM `wrok_job_view`  WHERE id=#{id}")
   RestPerTask StudentTask(@Param("id")Integer id);

   @Update("  UPDATE work_submit_info set answer_remark =#{answerRemark},is_draft=#{isDraft},work_status=#{workStatus} WHERE id=#{id}")
   boolean StudentAnswers(@Param("id")Integer id,@Param("answerRemark") String answerRemark,@Param("isDraft") String isDraft, @Param("workStatus")String workStatus);
}
